<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" type="text/css" href="${static_url}/ui/app/assets/js/plugin/kindeditor/themes/default/default.css">
<c:if test="${param.mode=='simple'}">
  <script type="text/javascript" src="${static_url}/ui/app/assets/js/plugin/kindeditor/kindeditor-min.js"></script>
</c:if>
<c:if test="${param.mode!='simple'}">
  <script type="text/javascript" src="${static_url}/ui/app/assets/js/plugin/kindeditor/kindeditor-all-min.js"></script>
</c:if>
<script type="text/javascript" src="${static_url}/ui/app/assets/js/plugin/kindeditor/lang/zh_CN.js"></script>
<script>
  var editor;
  KindEditor.ready(function(K) {
    editor = K.create('textarea[name="${param.name}"]', {
      uploadJson : '${ctx}/kindEditor/upload.htm',
      resizeType : 1,
      allowPreviewEmoticons : false,
      allowImageUpload : true,
      items : [
        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', '|', 'image', 'link'],
      afterBlur: function () {
        this.sync();
      }
    });
  });
</script>
<textarea name="${param.name}" style="width:500px;height:350px;visibility:hidden;"
          data-rule="required;"
          data-msg-required="请输入商品详情"
          data-ok=""
          data-target="#content-msg-v">${param.content}</textarea>
<label class="label-info" id="content-msg-v"></label>